package com.example.business_oa.service;

import com.example.comment_oa.dubbo.PosServiceDubbo;
import com.example.comment_oa.pojos.rear.Pos;
import com.example.comment_oa.pojos_vo.LogisticsVo.PosVo;
import com.example.comment_oa.pojos_vo.flowableVo.taskVo;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:采购订单审批
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2023-02-08 15:14
 * @Entry_Name:my_springcloud_project01cangku
 */
@Service
public class PosService {

    @DubboReference(version = "1.0.0")
    PosServiceDubbo posDeptServiceDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public Boolean upPos(taskVo taskVo){
        return  posDeptServiceDubbo.upPos(taskVo);
    }

    @GlobalTransactional(timeoutMills = 300000)
    public boolean AddIndent (PosVo posVo){ return posDeptServiceDubbo.AddIndent(posVo); }
}
